projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2386f0a
)
xl: Fix xl vcpu-list output on machines with more than 16 cores
author
Andre Przywara
<andre.przywara@amd.com>
Tue, 10 Aug 2010 14:35:13 +0000
(15:35 +0100)
committer
Andre Przywara
<andre.przywara@amd.com>
Tue, 10 Aug 2010 14:35:13 +0000
(15:35 +0100)
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/xl_cmdimpl.c
patch
|
blob
|
history
diff --git
a/tools/libxl/xl_cmdimpl.c
b/tools/libxl/xl_cmdimpl.c
index a9d0c01162a60f1abeeeed73c7be5bfde7032858..206b54332f4e7acddc3f0a0ab55b6d809a934de0 100644
(file)
--- a/
tools/libxl/xl_cmdimpl.c
+++ b/
tools/libxl/xl_cmdimpl.c
@@
-3213,7
+3213,7
@@
static void print_vcpuinfo(uint32_t tdomid,
/* TIM */
printf("%9.1f ", ((float)vcpuinfo->vcpu_time / 1e9));
/* CPU AFFINITY */
- pcpumap = nr_cpus > 64 ?
-1 : ((1
<< nr_cpus) - 1);
+ pcpumap = nr_cpus > 64 ?
(uint64_t)-1 : ((1ULL
<< nr_cpus) - 1);
for (cpumap = vcpuinfo->cpumap; nr_cpus; ++cpumap) {
if (*cpumap < pcpumap) {
break;